
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package meeple;

//~--- JDK imports ------------------------------------------------------------

import java.awt.Color;

/**
 *
 * @author rogier
 */
public class Player {
    private Color  color;
    private int    meeples;
    private String name;
    private int    score;

    public Player(String name, Color c) {
        this.name = name;
        score     = 0;
        meeples   = 7;
        color     = c;
    }

    public int addMeeple() {
        return meeples += 1;
    }

    public int removeMeeple() {
        return meeples -= 1;
    }

    public int addPoints(int p) {
        return score += p;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the score
     */
    public int getScore() {
        return score;
    }

    /**
     * @param score the score to set
     */
    public void setScore(int score) {
        this.score = score;
    }

    /**
     * @return the meeples
     */
    public int getMeeples() {
        return meeples;
    }

    /**
     * @param meeples the meeples to set
     */
    public void setMeeples(int meeples) {
        this.meeples = meeples;
    }

    /**
     * @return the color
     */
    public Color getColor() {
        return color;
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
